package com.itwn.comic.mapper;

import com.itwn.comic.entity.Page;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Page record);

    Page selectByPrimaryKey(Integer id);

    List<Page> selectAll();

    int updateByPrimaryKey(Page record);

    @Select("select * from t_page where section_id = #{value}")
    List<Page> selectPageBYSectionId(Integer id);
    @Select("select resource_id  from t_section where id = #{value}")
    int selectRidBySid(Integer sid);
}